﻿using System;
using System.Linq;
using System.Linq.Expressions;
using RailNet.Dao.Entity;

namespace RailNet.Dao.Repository
{
    public interface IRelationRepository
    {
        IQueryable<Relation> All { get; }
        IQueryable<Relation> AllIncluding(params Expression<Func<Relation, object>>[] includeProperties);
        IQueryable<Relation> AllWithDefaultIncluding();
        Relation Find(long id);
        void InsertOrUpdate(Relation relation);
        void Delete(long id);
        void Save();
    }
}